<%@ page language="java" %> 
<%@ page import="HDAPI.HDBase" %>
<%@ page import="java.util.*" %>
 
<% 

	HDBase hd = new HDBase("demo@handsetdetection.com", "demo");
        hd.setv2ApiKey("f60e0ff93080929b62b82da9ece64f85");
        hd.setURL("http://api-us1.handsetdetection.com");
        
        try{
            if(hd.vendor()){
                out.println(hd.getVendor().toString());
                out.println("<br />");
                out.println("Status :" + hd.getVendor().get(("message")));
                
            }else{
                out.println(hd.getVendor().get(("message")));
            }
        }catch(Exception ex){
            out.println(ex.getMessage());
        }

%>